gtkwindowhandle: Only claim gesture on action
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 13 Jul 2020 13:44:58 +0000 (15:44 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 13 Jul 2020 13:48:12 +0000 (15:48 +0200)
commit35d2539ef802f029fbcc1c27df3716f3fbad5840
treead54a59076cc926f4b00ef1c6c773280e4736012
parent53831e67a77aaaacc17a8f7ec9a942bd097e9e2b
gtkwindowhandle: Only claim gesture on action

The press gesture does not need to set claimed state just for n-press
tracking, it will however reset all other click gestures on each press
if the event gets propagated all the way up.

Fixes tracking of multi-press in gestures in widgets that are children
of the window handle. E.g. the headerbar listview in the "File browser"
gtk4-demo demo.
gtk/gtkwindowhandle.c